package com.huanghuai.retail.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
public class PInformation {

    //商品id
    private Long id;

    //商品名称
    private String name;

    //商品类型id
    private Long typeId;

    //厂家id
    private Long factoryId;

    //品牌id
    private Long brandId;

    //包装类型
    private String wrap;

    //商品规格
    private String specs;

    //市场价格
    private Float price;

    //建议货道
    private String advicePassage;

    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    //最后修改时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    //创建人id
    @TableField(fill = FieldFill.INSERT)
    private Long createUser;

    //最后修改人id
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;

    //产品图片
    private String image;

    //产品描述
    private String depicted;

    //所占货到个数
    private int lanes;
}
